import api from '../../request'

function descApi(data) {
  return api.get('scy/app/spTrouble/listBill', data)
}

function pdfApi(data) {
  return api.get('scy/app/spTrouble/getPdf', data, { headers: { responseType: 'blob' } })
}

function affirmApi(data) {
  return api.post('scy/app/spTrouble/finished', data, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
}

module.exports = {
  descApi,
  pdfApi,
  affirmApi,
}
